<?php
namespace Common\Model;

use Think\Model\RelationModel;

class UserModel extends RelationModel
{
    protected $_link = array(
        'group'=>array(
            'mapping_type'  => self::BELONGS_TO,
            'class_name'    => 'AuthGroup',
            'foreign_key'   => 'group_id'
        )
    );
}